import request from '@/utils/request'

// 查询换证管理列表
export function listCertificateReissue(query) {
  return request({
    url: '/training/certificateReissue/list',
    method: 'get',
    params: query
  })
}

// 查询换证管理详细
export function getCertificateReissue(certificateReissueId) {
  return request({
    url: '/training/certificateReissue/' + certificateReissueId,
    method: 'get'
  })
}

// 新增换证管理
export function addCertificateReissue(data) {
  return request({
    url: '/training/certificateReissue',
    method: 'post',
    data: data
  })
}

// 修改换证管理
export function updateCertificateReissue(data) {
  return request({
    url: '/training/certificateReissue',
    method: 'put',
    data: data
  })
}

// 删除换证管理
export function delCertificateReissue(certificateReissueId) {
  return request({
    url: '/training/certificateReissue/' + certificateReissueId,
    method: 'delete'
  })
}
